package com.itany.cloud.service.impl;

import com.itany.cloud.service.UserServiceClient;
import com.itany.cloud.util.ResponseResult;
import org.springframework.stereotype.Service;

/**
 * @author 石小俊
 * 退路类
 */
@Service
public class UserServiceFallback implements UserServiceClient {
    @Override
    public ResponseResult findAll() {
        return ResponseResult.fail("服务提供者cloud-nacos-provider出现故障");
    }

    @Override
    public ResponseResult findById(Integer id) {
        return ResponseResult.fail("服务提供者cloud-nacos-provider出现故障");
    }

    @Override
    public ResponseResult addUser(String username, String password) {
        return ResponseResult.fail("服务提供者cloud-nacos-provider出现故障");
    }

    @Override
    public ResponseResult modifyUser(Integer id, String username, String password) {
        return ResponseResult.fail("服务提供者cloud-nacos-provider出现故障");
    }

    @Override
    public ResponseResult deleteUser(Integer id) {
        return ResponseResult.fail("服务提供者cloud-nacos-provider出现故障");
    }
}
